package com.woniu.humanresource.service;

import com.woniu.humanresource.entity.Position;
import com.woniu.humanresource.entity.User;
import com.woniu.humanresource.entity.User02;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface UserService {
    //查询所有管理员
    List<User> selectAllUser(int pageIndex, int pageSize);
    //条件查询管理员
    List<User> selectUserByCondition(int dapartid );
    List<User> selectUserByCondition2(int dapartid ,int positionid);
    List<User> selectUserByCondition3(int dapartid ,int positionid , String username,int pageIndex, int pageSize);

    //查询所有的职位
    List<Position> selectAllPosition();
    //条件查询职位
    List<Position> selectPositionByCondition(int pnum);
    List<Position> selectPositionByCondition2(String pnum);
    //修改用户
    void updateUser(int id , int setpositionid);
    //删除user
    void deleteUser(int id);
    //查询用户总数
    int selectAllUserCount(int dapartid,int positionid);
    //重置密码
    void resetpassword(int id,String password);

    void insertUser(User02 u);

}
